#define GTK_ENABLE_BROKEN
#include <gnome.h>

GtkWidget *make_hpane(void){
	GtkWidget *left_text,*right_text,*paned;

	left_text = gtk_text_new(NULL,NULL);
	right_text = gtk_text_new(NULL,NULL);
	for(int i= 0;i<15;i++){
		
		gtk_text_insert(GTK_TEXT(left_text),NULL,NULL,NULL,
			"The quick brown fox jumped on the leftovers.",-1);
		gtk_text_insert(GTK_TEXT(right_text),NULL,NULL,NULL,
			"The lazy gray dog slept by the leftovers.",-1);
		
		//gtk_text_insert((GtkText*)left_text,NULL,NULL,NULL,
		//	"The quick brown fox jumped on the leftovers.",-1);
	}
	paned = gtk_hpaned_new();
	gtk_paned_add1(GTK_PANED(paned),left_text);
	gtk_paned_add2(GTK_PANED(paned),right_text);

	//gtk_paned_set_handle_size(GTK_PANED(paned),30);
	gtk_paned_set_gutter_size(GTK_PANED(paned),200);

	return paned;
}

int main(int argc,char **argv){
	GtkWidget *w,*pane;

	gnome_init("","",argc,argv);
	w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	gtk_window_set_default_size(GTK_WINDOW(w),200,200);
	gtk_signal_connect(GTK_OBJECT(w),"destroy",G_CALLBACK(gtk_main_quit),NULL);

	pane = make_hpane();
	gtk_container_add(GTK_CONTAINER(w),pane);
	gtk_widget_show_all(w);
	gtk_main();

	return 0;
}